<script type="text/javascript">
	WIDTH_MULTIPLIER = <?php echo constants::$widthFck;?>;
	HEIGHT_MULTIPLIER = <?php echo constants::$heightFck;?>;
	var EW_DHTMLEditors = [];
	function EW_UpdateTextArea() {
		if (typeof EW_DHTMLEditors != 'undefined') {
			if (FCKeditorAPI) {
				var inst;			
				for (inst in FCKeditorAPI.__Instances)
					FCKeditorAPI.__Instances[inst].UpdateLinkedField();
			}
		}
	}
</script>
<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="itemID" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2">
	<!-- tr>
     <td align="left" bgcolor="#FFFFCC"><span class="span-text">Tóm tắt :</span><br />
     	<textarea name="tomtat" id="tomtat" cols="45" rows="5"><?php echo $this->dataPost['tomtat'];?></textarea>
     	<script type="text/javascript">
			var editor = new EW_DHTMLEditor("tomtat");
			editor.create = function() {
				var sBasePath = 'fckeditor/';
				var oFCKeditor = new FCKeditor('tomtat', 10 * WIDTH_MULTIPLIER, 4 * HEIGHT_MULTIPLIER);
				oFCKeditor.BasePath = sBasePath;
				oFCKeditor.ReplaceTextarea();
				this.active = true;
			}
			EW_DHTMLEditors[EW_DHTMLEditors.length] = editor;
		</script>
     </td>
   </tr>
   <?php if (constants::$language_vn) :?>
   <tr>
     <td align="left" bgcolor="#FFFFCC"><span class="span-text">Tomtat :</span><br />
     	<textarea name="tomtat_en" id="tomtat_en" cols="45" rows="5"><?php echo $this->dataPost['tomtat_en'];?></textarea>
     	<script type="text/javascript">
			var editor = new EW_DHTMLEditor("tomtat_en");
			editor.create = function() {
				var sBasePath = 'fckeditor/';
				var oFCKeditor = new FCKeditor('tomtat_en', 10 * WIDTH_MULTIPLIER, 4 * HEIGHT_MULTIPLIER);
				oFCKeditor.BasePath = sBasePath;
				oFCKeditor.ReplaceTextarea();
				this.active = true;
			}
			EW_DHTMLEditors[EW_DHTMLEditors.length] = editor;
		</script>
     </td>
   </tr>
   <?php endif;?>-->
   <tr>
     <td align="left" bgcolor="#FFFFCC"><span class="span-text">Nội dung :</span><br />
     	<textarea name="noidung" id="noidung" cols="45" rows="5"><?php echo $this->dataPost['noidung'];?></textarea>
     	<script type="text/javascript">
			var editor = new EW_DHTMLEditor("noidung");
			editor.create = function() {
				var sBasePath = 'fckeditor/';
				var oFCKeditor = new FCKeditor('noidung', 10 * WIDTH_MULTIPLIER, 8 * HEIGHT_MULTIPLIER);
				oFCKeditor.BasePath = sBasePath;
				oFCKeditor.ReplaceTextarea();
				this.active = true;
			}
			EW_DHTMLEditors[EW_DHTMLEditors.length] = editor;
		</script>
     </td>
   </tr>
   <?php if (constants::$language_vn) :?>
   <tr>
     <td align="left" bgcolor="#FFFFCC"><span class="span-text">Detail :</span><br />
     	<textarea name="noidung_en" id="noidung_en" cols="45" rows="5"><?php echo $this->dataPost['noidung_en'];?></textarea>
     	<script type="text/javascript">
			var editor = new EW_DHTMLEditor("noidung_en");
			editor.create = function() {
				var sBasePath = 'fckeditor/';
				var oFCKeditor = new FCKeditor('noidung_en', 10 * WIDTH_MULTIPLIER, 8 * HEIGHT_MULTIPLIER);
				oFCKeditor.BasePath = sBasePath;
				oFCKeditor.ReplaceTextarea();
				this.active = true;
			}
			EW_DHTMLEditors[EW_DHTMLEditors.length] = editor;
		</script>
     </td>
   </tr>
   <?php endif;?>
   <tr>
     <td align="center" bgcolor="#FFFFCC">
     	<table width="100%" border="0" cellpadding="0" cellspacing="6" class="fbutton">
    		<tr>
    			<td width="45%" align="right" class="fbutrg"><img onclick="window.location.assign('index.php?m=user<?php echo constants::$pathUrl;?>');" src="images/back.png" border="0" width="34" title="back"/>&nbsp;&nbsp;&nbsp;</td>
    			<td width="55%" align="left">&nbsp;&nbsp;&nbsp;<span onclick="frmSubmit('m=mintro&a=edit<?php echo constants::$pathUrl;?>', '<?php echo $this->id; ?>', 'edit', 'edit')" class="fbutlf"><?php echo $this->tpl_button;?></span></td>
    		</tr>
    	</table>
    </td>
   </tr>
</table>
</form>
<script type="text/javascript">EW_createEditor();</script>
<?php if ($this->dialog) :?>
<div id="allconfirm">
	<div id="popup-diet" class="ui-popup-diet ui-body-e ui-corner-all" style="top: 216px;">
	<p>Thông tin được đổi lại !</p>
	<a href="#" onclick="window.location.assign('index.php?m=user<?php echo constants::$pathUrl;?>')">OK</a>
	</div>
</div>
<?php endif;?>